<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MyFirstWebPage</title>

<script type="text/javascript">
	function regist() {
		var form1 = document.getElementById("form1");
		form1.action = "first";
		form1.submit();
	}
</script>

</head>
<body>

	<form method="post" action="forward_demo.jsp">
		<input type="text" name="formPageParam" /> <input type="submit"
			value="go!" />
	</form>

	<h1>welcome</h1>
	<%-- <jsp:forward page="login.jsp"></jsp:forward> --%>
	<!-- 超链接 -->


	<a href="second">访问SecondServelt</a>

	<!-- 使用表单访问Firstservlet -->
	<form id="form1" action="first" method="post">
		用户名：<input type="text" /> <br /> 密码：<input type="password" /> <br />
		<input type="submit" value="登录" /> <input type="button" value="注册"
			onclick="regist()" />
	</form>
</body>
</html>